Optimal. Leaf size=148 \[ \frac{(2 a+5 b) \left (a+b \sin ^2(e+f x)\right )^{3/2}}{6 f (a+b)}+\frac{(2 a+5 b) \sqrt{a+b \sin ^2(e+f x)}}{2 f}-\frac{\sqrt{a+b} (2 a+5 b) \tanh ^{-1}\left (\frac{\sqrt{a+b \sin ^2(e+f x)}}{\sqrt{a+b}}\right )}{2 f}+\frac{\sec ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{2 f (a+b)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.136133, antiderivative size = 148, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {3194, 78, 50, 63, 208} \[ \frac{(2 a+5 b) \left (a+b \sin ^2(e+f x)\right )^{3/2}}{6 f (a+b)}+\frac{(2 a+5 b) \sqrt{a+b \sin ^2(e+f x)}}{2 f}-\frac{\sqrt{a+b} (2 a+5 b) \tanh ^{-1}\left (\frac{\sqrt{a+b \sin ^2(e+f x)}}{\sqrt{a+b}}\right )}{2 f}+\frac{\sec ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{2 f (a+b)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3194
Rule 78
Rule 50
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \left (a+b \sin ^2(e+f x)\right )^{3/2} \tan ^3(e+f x) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{x (a+b x)^{3/2}}{(1-x)^2} \, dx,x,\sin ^2(e+f x)\right )}{2 f}\\ &=\frac{\sec ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{2 (a+b) f}-\frac{(2 a+5 b) \operatorname{Subst}\left (\int \frac{(a+b x)^{3/2}}{1-x} \, dx,x,\sin ^2(e+f x)\right )}{4 (a+b) f}\\ &=\frac{(2 a+5 b) \left (a+b \sin ^2(e+f x)\right )^{3/2}}{6 (a+b) f}+\frac{\sec ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{2 (a+b) f}-\frac{(2 a+5 b) \operatorname{Subst}\left (\int \frac{\sqrt{a+b x}}{1-x} \, dx,x,\sin ^2(e+f x)\right )}{4 f}\\ &=\frac{(2 a+5 b) \sqrt{a+b \sin ^2(e+f x)}}{2 f}+\frac{(2 a+5 b) \left (a+b \sin ^2(e+f x)\right )^{3/2}}{6 (a+b) f}+\frac{\sec ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{2 (a+b) f}-\frac{((a+b) (2 a+5 b)) \operatorname{Subst}\left (\int \frac{1}{(1-x) \sqrt{a+b x}} \, dx,x,\sin ^2(e+f x)\right )}{4 f}\\ &=\frac{(2 a+5 b) \sqrt{a+b \sin ^2(e+f x)}}{2 f}+\frac{(2 a+5 b) \left (a+b \sin ^2(e+f x)\right )^{3/2}}{6 (a+b) f}+\frac{\sec ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{2 (a+b) f}-\frac{((a+b) (2 a+5 b)) \operatorname{Subst}\left (\int \frac{1}{1+\frac{a}{b}-\frac{x^2}{b}} \, dx,x,\sqrt{a+b \sin ^2(e+f x)}\right )}{2 b f}\\ &=-\frac{\sqrt{a+b} (2 a+5 b) \tanh ^{-1}\left (\frac{\sqrt{a+b \sin ^2(e+f x)}}{\sqrt{a+b}}\right )}{2 f}+\frac{(2 a+5 b) \sqrt{a+b \sin ^2(e+f x)}}{2 f}+\frac{(2 a+5 b) \left (a+b \sin ^2(e+f x)\right )^{3/2}}{6 (a+b) f}+\frac{\sec ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{2 (a+b) f}\\ \end{align*}
Mathematica [A] time = 0.534811, size = 116, normalized size = 0.78 \[ \frac{(2 a+5 b) \left (\sqrt{a+b \sin ^2(e+f x)} \left (4 a+b \sin ^2(e+f x)+3 b\right )-3 (a+b)^{3/2} \tanh ^{-1}\left (\frac{\sqrt{a+b \sin ^2(e+f x)}}{\sqrt{a+b}}\right )\right )+3 \sec ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^{5/2}}{6 f (a+b)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 3.349, size = 567, normalized size = 3.8 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 4.52874, size = 672, normalized size = 4.54 \begin{align*} \left [\frac{3 \,{\left (2 \, a + 5 \, b\right )} \sqrt{a + b} \cos \left (f x + e\right )^{2} \log \left (\frac{b \cos \left (f x + e\right )^{2} + 2 \, \sqrt{-b \cos \left (f x + e\right )^{2} + a + b} \sqrt{a + b} - 2 \, a - 2 \, b}{\cos \left (f x + e\right )^{2}}\right ) - 2 \,{\left (2 \, b \cos \left (f x + e\right )^{4} - 2 \,{\left (4 \, a + 7 \, b\right )} \cos \left (f x + e\right )^{2} - 3 \, a - 3 \, b\right )} \sqrt{-b \cos \left (f x + e\right )^{2} + a + b}}{12 \, f \cos \left (f x + e\right )^{2}}, \frac{3 \,{\left (2 \, a + 5 \, b\right )} \sqrt{-a - b} \arctan \left (\frac{\sqrt{-b \cos \left (f x + e\right )^{2} + a + b} \sqrt{-a - b}}{a + b}\right ) \cos \left (f x + e\right )^{2} -{\left (2 \, b \cos \left (f x + e\right )^{4} - 2 \,{\left (4 \, a + 7 \, b\right )} \cos \left (f x + e\right )^{2} - 3 \, a - 3 \, b\right )} \sqrt{-b \cos \left (f x + e\right )^{2} + a + b}}{6 \, f \cos \left (f x + e\right )^{2}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \sin \left (f x + e\right )^{2} + a\right )}^{\frac{3}{2}} \tan \left (f x + e\right )^{3}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]